using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Sterilizationcenter.Domain.zmc
{
    /// <summary>
    /// 病床信息表
    /// </summary>
    [SugarTable("Bed")]
    public class Bed
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 床位编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string BedNo { get; set; }

        /// <summary>
        /// 所属病房ID
        /// </summary>
        public int WardId { get; set; }

        /// <summary>
        /// 所属病房编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string WardNo { get; set; }

        /// <summary>
        /// 床位状态（0:空闲, 1:占用, 2:维修）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 当前患者ID（如果有）
        /// </summary>
        public int? PatientId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}